package com.artezio.vacation.service;

import com.artezio.vacation.domain.Vacation;
import com.artezio.vacation.message.MessageGateway;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Service for sending different notifications.
 */
@Service
public class MessageService {

    private static final Logger LOGGER = Logger.getLogger(MessageService.class);

    @Autowired
    private MessageGateway messageGateway;

    public void sendVacationRequest(Vacation v) {
        LOGGER.info(v.getUser() + " wants to go on vacation.");
    }
}
